package com.example.llademo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhangqi
 * @date 2024/4/2
 * @time 09:34
 * @description 航天器轨迹
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Slf4j
public class ADSPosition {
    //Time (UTCG) 接收时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date captureTime;
    //Lat (deg)
    private BigDecimal lat;
    //Lon (deg)
    private BigDecimal lon;
    //Alt (km)
    private BigDecimal alt;
    //Lat Rate (deg/sec)
    private BigDecimal latRate;
    //Lon Rate (deg/sec)
    private BigDecimal lonRate;
    //Alt Rate (km/sec)
    private BigDecimal altRate;

    private String icao;

    private String callSign;

    private String registerNo;
    //起飞时间
    private String takeOffTime;
    //降落时间
    private String landingTime;
    //起飞机场
    private String takeOffAirport;
    //降落机场
    private String landingAirport;

}
